package com.liuweidihuangwan.jingdong.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName shangpin
 */
@TableName(value ="shangpin")
@Data
public class Shangpin implements Serializable {
    /**
     * 商品ID
     */
    @TableId(type = IdType.AUTO)
    private Integer spID;

    /**
     * 商品名
     */
    private String name;

    /**
     * 商品图片
     */
    private String img;

    /**
     * 介绍
     */
    private String introduce;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 销量
     */
    private Integer salesNum;

    /**
     * 库存
     */
    private Integer repertory;

    /**
     * 标签ID
     */
    private Integer labelID;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}